package cn.com.roy.thread.t7_7.threadeceptionmove;

import cn.com.roy.thread.t7_4_1.formatError.Mythread;

public class Run {
    public static void main(String[] args) {
        MyThread myThread = new MyThread();
        myThread.setUncaughtExceptionHandler(new ObjectUncaughtExceptionHandler());
        Mythread.setDefaultUncaughtExceptionHandler(new StateUncaughtExceptionHandler());
        myThread.start();
    }
}
